// 将数字翻译成字符串
#include <iostream>
#include <string>
using namespace std;
int solve (string nums) {
    int n = nums.length();
    int *dp = new int[n+1];
    if(nums[0] > '0') {
        dp[1] = 1;
    } 
    dp[0] = 1;
    for(int i = 1; i < n; ++i) {
        int t1 = nums[i-1]-'0';
        int t2 = nums[i]-'0';
        int temp = t1*10 + t2;
        if(t2 == 0) {
            if(10 <= temp && temp <= 26) {
                dp[i+1] = dp[i-1];
            }
        }else {
            if(10 <= temp && temp <= 26) {
                dp[i+1] = dp[i-1] + dp[i];
            }else {
                dp[i+1] = dp[i];
            }
        }
    }
    return dp[n];
}